import axios from "axios";
axios.defaults.baseURL = "http://localhost:3008";

//获取所有车主信息
export const getCarOwnersList = (params) =>
  axios.post("/users/getCarOwnersList", params);

//根据状态(aplay)获取所有申请
export const getCarOwnerIdCard = (params) =>
  axios.post("/users/getCarOwnerIdCard", params);

//根据Id获取一个车主信息
export const getCarOwnerId = (params) =>
  axios.post("/users/getCarOwnerId", params);

//修改用户审核状态
export const changeOwnerToOwner = (params) =>
  axios.post("/users/changeOwnerToOwner", params);

//============================================================================
export const getUsersListApi = (params = { pageSize: 10, pageNumber: 1 }) =>
  axios.post("/users/getUsersList", params);
export const getUserToOwnerApi = (params) =>
  axios.post("/users/getUserToOwner", params);
export const changeUserToOwnerApi = (params) =>
  axios.post("/users/changeUserToOwner", params);
export const getUsersCountApi = (params) =>
  axios.post("/users/getUsersCount", params);
export const getOwnersCountApi = (params) =>
  axios.post("/users/getOwnersCount", params);
